package net.studou.po;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Task entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Task implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -2706966327327976050L;
	private Integer taskId;
	private User receiver;
	private User owner;
	private Smaller smaller;
	private String taskNo;
	private String tbUrl;
	private Double price;
	private Integer isEquals;
	private Integer isHaveWord;
	private String hpWord;
	private Integer daFen;
	private Integer type;
	private Double publishPoint;
	private Integer status;
	private Date createTime;
	private Date receiveTime;
	private Date statusTime;
	private Integer version;
	private Set<TaskPopedom> taskPopedoms = new HashSet<TaskPopedom>(0);

	// Constructors

	/** default constructor */
	public Task() {
	}

	/** minimal constructor */
	public Task(Integer taskId, User owner, String taskNo, String tbUrl,
			Double price, Integer isEquals, Integer isHaveWord, Integer daFen,
			Integer type, Double publishPoint, Date createTime,
			Date statusTime, Integer version) {
		this.taskId = taskId;
		this.owner = owner;
		this.taskNo = taskNo;
		this.tbUrl = tbUrl;
		this.price = price;
		this.isEquals = isEquals;
		this.isHaveWord = isHaveWord;
		this.daFen = daFen;
		this.type = type;
		this.publishPoint = publishPoint;
		this.createTime = createTime;
		this.statusTime = statusTime;
		this.version = version;
	}

	/** full constructor */
	public Task(Integer taskId, User receiver, User owner, Smaller smaller,
			String taskNo, String tbUrl, Double price, Integer isEquals,
			Integer isHaveWord, String hpWord, Integer daFen, Integer type,
			Double publishPoint, Integer status, Date createTime,
			Date receiveTime, Date statusTime, Integer version,
			Set<TaskPopedom> taskPopedoms) {
		this.taskId = taskId;
		this.receiver = receiver;
		this.owner = owner;
		this.smaller = smaller;
		this.taskNo = taskNo;
		this.tbUrl = tbUrl;
		this.price = price;
		this.isEquals = isEquals;
		this.isHaveWord = isHaveWord;
		this.hpWord = hpWord;
		this.daFen = daFen;
		this.type = type;
		this.publishPoint = publishPoint;
		this.status = status;
		this.createTime = createTime;
		this.receiveTime = receiveTime;
		this.statusTime = statusTime;
		this.version = version;
		this.taskPopedoms = taskPopedoms;
	}

	// Property accessors

	public Integer getTaskId() {
		return taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public User getReceiver() {
		return receiver;
	}

	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}

	public Smaller getSmaller() {
		return this.smaller;
	}

	public void setSmaller(Smaller smaller) {
		this.smaller = smaller;
	}

	public String getTaskNo() {
		return taskNo;
	}

	public void setTaskNo(String taskNo) {
		this.taskNo = taskNo;
	}

	public String getTbUrl() {
		return this.tbUrl;
	}

	public void setTbUrl(String tbUrl) {
		this.tbUrl = tbUrl;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getIsEquals() {
		return this.isEquals;
	}

	public void setIsEquals(Integer isEquals) {
		this.isEquals = isEquals;
	}

	public Integer getIsHaveWord() {
		return this.isHaveWord;
	}

	public void setIsHaveWord(Integer isHaveWord) {
		this.isHaveWord = isHaveWord;
	}

	public String getHpWord() {
		return this.hpWord;
	}

	public void setHpWord(String hpWord) {
		this.hpWord = hpWord;
	}

	public Integer getDaFen() {
		return this.daFen;
	}

	public void setDaFen(Integer daFen) {
		this.daFen = daFen;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Double getPublishPoint() {
		return publishPoint;
	}

	public void setPublishPoint(Double publishPoint) {
		this.publishPoint = publishPoint;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getReceiveTime() {
		return this.receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Date getStatusTime() {
		return this.statusTime;
	}

	public void setStatusTime(Date statusTime) {
		this.statusTime = statusTime;
	}

	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Set<TaskPopedom> getTaskPopedoms() {
		return this.taskPopedoms;
	}

	public void setTaskPopedoms(Set<TaskPopedom> taskPopedoms) {
		this.taskPopedoms = taskPopedoms;
	}

}